-- GENERATED SPELL FOR [Marine Halters] --


function spell0_24841(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(12024,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24841', 5327, 1)
end

function spell1_24841(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(23337,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24841', 610, 1)
end

function Sorts_24841(pUnit, Event)
local choix_sorts_24841 = math.random(0, 1)
if choix_sorts_24841 == 0 then
pUnit:RegisterEvent('spell0_24841', 1, 1)
end
if choix_sorts_24841 == 1 then
pUnit:RegisterEvent('spell1_24841', 1, 1)
end
end

function mob24841_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24841', math.random(1500, 3000), 1)
end

function mob24841_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24841_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24841_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24841, 1, 'mob24841_Action')
RegisterUnitEvent(24841, 2, 'mob24841_Leave')
RegisterUnitEvent(24841, 3, 'mob24841_Kill')
RegisterUnitEvent(24841, 4, 'mob24841_Die')
